/**
 * 
 */
package teehee.Dispatch;

import java.util.ArrayList;

import teehee.DB.DB;
import teehee.Manager.AddNewManager;

import android.content.Context;

/**
 * @author 
 *
 */
public class AddNewDispatch {
	
	public static boolean createNewEntryDispatch(Context ctx, String type, String name,
			String reps,String time, String weights, String comments, ArrayList<String> exercises) {
		if (DB.find(name) != null) { //check if the name is in the database
			return false;
		}
		return AddNewManager.createNewEntryManager(ctx, type, name, reps, time, weights, comments, exercises);
	}
	
	public static DB AddNewDispatchFind(String name)
	{
		DB entry = DB.find(name);
		return entry;
	}
}
